/**
 * 获取评论数据
 */
export const getAmendDataFn = () => {
  return {
    code: 0,
    data: {
      data: [
        {
          id: "1331202150533046272",
          uuid: "b6847708-5054-492e-b569-223e8bd858f1",
          parentName: "设备",
          parentId: "1321131958826311680",
          fileId: "1331202103019970560",
          fileCode: null,
          page: 1,
          num: 1,
          amendUser: "1280923946711130112",
          fileName: "2024小南海水库防洪抢险应急预案(1).pdf",
          taggedBody:
            '{"type":"path","version":"4.3.0","originX":"left","originY":"top","left":227.81,"top":270.5,"width":446,"height":21,"fill":null,"stroke":"rgb(0, 0, 0)","strokeWidth":1,"strokeDashArray":null,"strokeLineCap":"round","strokeDashOffset":0,"strokeLineJoin":"round","strokeMiterLimit":10,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","skewX":0,"skewY":0,"customData":{"id":"b6847708-5054-492e-b569-223e8bd858f1"},"path":[["M",195.3115,284.999],["Q",195.3125,285,195.8125,285.5],["Q",196.3125,286,200.3125,287],["Q",204.3125,288,211.8125,289.5],["Q",219.3125,291,237.3125,294.5],["Q",255.3125,298,284.8125,301],["Q",314.3125,304,351.8125,305],["Q",389.3125,306,450.8125,306],["Q",512.3125,306,544.8125,306],["Q",577.3125,306,597.3125,306],["Q",617.3125,306,626.3125,306],["Q",635.3125,306,638.3125,306],["L",641.3135,306]]}',
          amendBody: "<p>这是预案名称</p>",
          status: 1,
          describe: null,
          createUser: "root",
          createTime: 1737424925000,
          updateUser: null,
          updateTime: 1739516324000,
          version: "20250121100205",
          isDelete: 0,
          type: "path",
          amendResponse: null,
        },
        {
          id: "1331202504154816512",
          uuid: "a623ba05-c5d1-41a1-aa4b-9ef760d06ac5",
          parentName: "设备",
          parentId: "1321131958826311680",
          fileId: "1331202103019970560",
          fileCode: null,
          page: 1,
          num: 1,
          amendUser: "1280923946711130112",
          fileName: "2024小南海水库防洪抢险应急预案(1).pdf",
          taggedBody:
            '{"type":"path","version":"4.3.0","originX":"left","originY":"top","left":300.81,"top":912.5,"width":467.83,"height":11,"fill":null,"stroke":"rgb(0, 0, 0)","strokeWidth":1,"strokeDashArray":null,"strokeLineCap":"round","strokeDashOffset":0,"strokeLineJoin":"round","strokeMiterLimit":10,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","skewX":0,"skewY":0,"customData":{"id":"a623ba05-c5d1-41a1-aa4b-9ef760d06ac5"},"path":[["M",301.3115,917.001],["Q",301.3125,917,301.3125,916.5],["Q",301.3125,916,303.3125,915.5],["Q",305.3125,915,308.8125,914],["Q",312.3125,913,315.3125,913],["Q",318.3125,913,334.3125,913],["Q",350.3125,913,380.3125,913],["Q",410.3125,913,455.8125,915],["Q",501.3125,917,568.8125,917],["Q",636.3125,917,675.8125,918],["Q",715.3125,919,736.3125,921],["Q",757.3125,923,762.3125,923.5],["Q",767.3125,924,768.3125,924],["Q",769.3125,924,768.8125,924],["Q",768.3125,924,765.8125,924],["L",763.3115,924]]}',
          amendBody: "<p>保障中心单位名称</p>",
          status: 2,
          describe: null,
          createUser: "root",
          createTime: 1737425010000,
          updateUser: null,
          updateTime: 1739516324000,
          version: "20250121100329",
          isDelete: 0,
          type: "path",
          amendResponse: null,
        },
        {
          id: "1339974112709320704",
          uuid: "81e25e6f-0ef7-4f9f-876d-db87dd640156",
          parentName: "设备",
          parentId: "1321131958826311680",
          fileId: "1331202103019970560",
          fileCode: null,
          page: 6,
          num: 1,
          amendUser: "1280923946711130112",
          fileName: "2024小南海水库防洪抢险应急预案(1).pdf",
          taggedBody:
            '{"type":"path","version":"4.3.0","originX":"left","originY":"top","left":223.9,"top":877.42,"width":489,"height":204.94,"fill":null,"stroke":"rgb(0, 0, 0)","strokeWidth":1,"strokeDashArray":null,"strokeLineCap":"round","strokeDashOffset":0,"strokeLineJoin":"round","strokeMiterLimit":10,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","skewX":0,"skewY":0,"customData":{"id":"81e25e6f-0ef7-4f9f-876d-db87dd640156"},"path":[["M",224.3990015258789,877.9216603806582],["Q",224.4000015258789,877.9216603806582,224.9000015258789,877.9216603806582],["Q",225.4000015258789,877.9216603806582,225.9000015258789,877.9216603806582],["Q",226.4000015258789,877.9216603806582,226.9000015258789,877.9216603806582],["Q",227.4000015258789,877.9216603806582,227.9000015258789,879.421184944842],["Q",228.4000015258789,880.9207095090259,228.4000015258789,882.9200755946042],["Q",228.4000015258789,884.9194416801827,229.4000015258789,888.418332329945],["Q",230.4000015258789,891.9172229797073,230.4000015258789,896.4157966722588],["Q",230.4000015258789,900.9143703648103,230.9000015258789,920.9080312205948],["Q",231.4000015258789,940.9016920763793,231.4000015258789,960.3955114107691],["Q",231.4000015258789,979.889330745159,231.4000015258789,992.3853687800242],["Q",231.4000015258789,1004.8814068148895,231.4000015258789,1018.8769694139386],["Q",231.4000015258789,1032.8725320129877,231.4000015258789,1042.86936244088],["Q",231.4000015258789,1052.8661928687723,231.4000015258789,1059.3641326469024],["Q",231.4000015258789,1065.8620724250322,231.9000015258789,1071.360329160373],["Q",232.4000015258789,1076.8585858957138,235.9000015258789,1078.8579519812922],["Q",239.4000015258789,1080.8573180668707,241.9000015258789,1081.85700110966],["Q",244.4000015258789,1082.856684152449,248.4000015258789,1082.856684152449],["Q",252.4000015258789,1082.856684152449,256.4000015258789,1081.85700110966],["Q",260.4000015258789,1080.8573180668707,282.4000015258789,1078.8579519812922],["Q",304.4000015258789,1076.8585858957138,332.9000015258789,1075.35906133153],["Q",361.4000015258789,1073.859536767346,401.4000015258789,1071.8601706817676],["Q",441.4000015258789,1069.8608045961892,482.9000015258789,1068.3612800320052],["Q",524.4000015258789,1066.8617554678215,562.4000015258789,1066.8617554678215],["Q",600.4000015258789,1066.8617554678215,614.9000015258789,1066.8617554678215],["Q",629.4000015258789,1066.8617554678215,650.4000015258789,1066.8617554678215],["Q",671.4000015258789,1066.8617554678215,689.4000015258789,1066.3619139464267],["Q",707.4000015258789,1065.8620724250322,708.9000015258789,1065.8620724250322],["Q",710.4000015258789,1065.8620724250322,710.9000015258789,1065.8620724250322],["Q",711.4000015258789,1065.8620724250322,711.9000015258789,1065.3622309036377],["Q",712.4000015258789,1064.862389382243,712.9000015258789,1064.862389382243],["Q",713.4000015258789,1064.862389382243,713.4000015258789,1063.3628648180593],["Q",713.4000015258789,1061.8633402538753,712.9000015258789,1060.3638156896914],["Q",712.4000015258789,1058.8642911255076,712.4000015258789,1056.8649250399292],["Q",712.4000015258789,1054.8655589543507,711.9000015258789,1053.8658759115615],["Q",711.4000015258789,1052.8661928687723,709.9000015258789,1047.867777654826],["Q",708.4000015258789,1042.86936244088,704.9000015258789,1029.87348288462],["Q",701.4000015258789,1016.8776033283602,698.4000015258789,1004.8814068148895],["Q",695.4000015258789,992.8852103014189,692.4000015258789,978.8896477023698],["Q",689.4000015258789,964.8940851033205,687.9000015258789,957.3964622824014],["Q",686.4000015258789,949.8988394614822,685.4000015258789,943.4008996833522],["Q",684.4000015258789,936.9029599052224,682.9000015258789,931.4047031698817],["Q",681.4000015258789,925.906446434541,680.9000015258789,922.9073973061733],["Q",680.4000015258789,919.9083481778056,679.9000015258789,917.9089820922272],["Q",679.4000015258789,915.9096160066488,678.9000015258789,914.4100914424648],["Q",678.4000015258789,912.910566878281,678.4000015258789,911.4110423140971],["Q",678.4000015258789,909.9115177499133,677.9000015258789,908.4119931857294],["Q",677.4000015258789,906.9124686215457,676.9000015258789,905.9127855787565],["Q",676.4000015258789,904.9131025359671,676.4000015258789,904.4132610145725],["Q",676.4000015258789,903.913419493178,675.9000015258789,903.913419493178],["Q",675.4000015258789,903.913419493178,675.4000015258789,903.4135779717833],["Q",675.4000015258789,902.9137364503887,673.9000015258789,902.4138949289941],["Q",672.4000015258789,901.9140534075996,671.9000015258789,901.9140534075996],["Q",671.4000015258789,901.9140534075996,667.9000015258789,901.414211886205],["Q",664.4000015258789,900.9143703648103,659.4000015258789,900.9143703648103],["Q",654.4000015258789,900.9143703648103,643.4000015258789,900.9143703648103],["Q",632.4000015258789,900.9143703648103,616.4000015258789,899.9146873220211],["Q",600.4000015258789,898.9150042792319,587.4000015258789,898.4151627578373],["Q",574.4000015258789,897.9153212364427,556.4000015258789,897.415479715048],["Q",538.4000015258789,896.9156381936534,521.9000015258789,896.9156381936534],["Q",505.4000015258789,896.9156381936534,489.4000015258789,896.4157966722589],["Q",473.4000015258789,895.9159551508643,458.4000015258789,895.9159551508643],["Q",443.4000015258789,895.9159551508643,428.4000015258789,894.9162721080751],["Q",413.4000015258789,893.9165890652858,400.4000015258789,893.9165890652858],["Q",387.4000015258789,893.9165890652858,370.9000015258789,893.4167475438912],["Q",354.4000015258789,892.9169060224965,343.4000015258789,892.9169060224965],["Q",332.4000015258789,892.9169060224965,324.4000015258789,892.9169060224965],["Q",316.4000015258789,892.9169060224965,310.4000015258789,892.9169060224965],["Q",304.4000015258789,892.9169060224965,301.4000015258789,892.9169060224965],["Q",298.4000015258789,892.9169060224965,296.4000015258789,892.9169060224965],["Q",294.4000015258789,892.9169060224965,291.4000015258789,892.9169060224965],["Q",288.4000015258789,892.9169060224965,286.4000015258789,892.4170645011019],["Q",284.4000015258789,891.9172229797073,281.9000015258789,891.9172229797073],["Q",279.4000015258789,891.9172229797073,276.9000015258789,891.4173814583128],["Q",274.4000015258789,890.9175399369182,272.9000015258789,890.4176984155235],["Q",271.4000015258789,889.9178568941288,270.9000015258789,889.9178568941288],["Q",270.4000015258789,889.9178568941288,270.4000015258789,889.4180153727343],["Q",270.4000015258789,888.9181738513397,269.4000015258789,888.9181738513397],["Q",268.4000015258789,888.9181738513397,265.9000015258789,888.9181738513397],["Q",263.4000015258789,888.9181738513397,259.9000015258789,887.4186492871559],["Q",256.4000015258789,885.919124722972,254.4000015258789,885.919124722972],["Q",252.4000015258789,885.919124722972,251.9000015258789,885.919124722972],["Q",251.4000015258789,885.919124722972,250.9000015258789,885.919124722972],["Q",250.4000015258789,885.919124722972,249.9000015258789,885.919124722972],["Q",249.4000015258789,885.919124722972,245.9000015258789,885.4192832015774],["Q",242.4000015258789,884.9194416801827,239.9000015258789,884.9194416801827],["Q",237.4000015258789,884.9194416801827,234.9000015258789,884.9194416801827],["Q",232.4000015258789,884.9194416801827,228.9000015258789,884.4196001587882],["L",225.3990015258789,883.9187586373936]]}',
          amendBody: null,
          status: 2,
          describe: null,
          createUser: "root",
          createTime: 1739516324000,
          updateUser: null,
          updateTime: 1739516324000,
          version: "20250214145843",
          isDelete: 0,
          type: "path",
          amendResponse: null,
        },
      ],
    },
  };
};

/**
 * 获取评论细节
 */
export const getAmendDetailDataFn = (num: string) => {
  switch (num) {
    case "b6847708-5054-492e-b569-223e8bd858f1":
      return {
        code: 0,
        data: {
          data: [
            {
              id: "1331202150533046272",
              amendBody: "<p>这是预案名称</p>",
              createUser: "root",
              createTime: 1737424925000,
              updateUser: null,
              updateTime: 1739516324000,
              adminFlag: false,
            },
            {
              id: "1331202394641539072",
              amendBody: "<p><br></p>",
              createUser: "root",
              createTime: 1737424983000,
              updateUser: "root",
              updateTime: 1737424983000,
              adminFlag: false,
            },
          ],
        },
      };
    case "a623ba05-c5d1-41a1-aa4b-9ef760d06ac5":
      return {
        code: 0,
        data: {
          data: [
            {
              id: "1331202504154816512",
              amendBody: "<p>保障中心单位名称</p>",
              createUser: "root",
              createTime: 1737425010000,
              updateUser: null,
              updateTime: 1739516324000,
              adminFlag: false,
            },
          ],
        },
      };

    case "81e25e6f-0ef7-4f9f-876d-db87dd640156":
      return {
        code: 0,
        data: {
          data: [],
        },
      };
  }
};
